home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4612 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  3.6 KB

  1. Path: news-2.csn.net!usenet
  2. From: charles stoyer <cstoyer@support.interpex.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Old Fortran dog learning new Visual C++ tricks - some questions
  5. Date: 31 Jan 1996 05:53:20 GMT
  6. Organization: Interpex limited
  7. Message-ID: <4en04g$5nv@news-2.csn.net>
  8. NNTP-Posting-Host: 204.131.233.8
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
  13.  
  14. I have been working with Microsoft Developers Studio with C++ 
  15. and Fortran 90 Powerstation for about two weeks or so now. I 
  16. come from a purely FORTRAN/assembly language background but 
  17. have been programming for over 25 years. I've gotten pretty far 
  18. and have bypassed the "Hello world" project and created a nifty 
  19. little dialog box application of my own, soon to be available 
  20. on the web for free. The application takes geomagnetic models 
  21. from the USGS and other world geomagnetic agencies and gives 
  22. the earth's magnetic field at the entered location and date. A 
  23. DOS version is available now at 
  24. http://www.interpex.com/interpex/ and is called GEOMAGIX.
  25.  
  26. I may be able to field some questions about getting Fortran to 
  27. call and be called from C++, as I have done both. Will be able 
  28. to be more useful as time goes on, I hope.
  29.  
  30. It seems that support from compiler/system manufacturers has 
  31. gone to the dogs and either they don't answer or they answer a 
  32. different question than was asked.  So I guess we must turn to 
  33. support groups like this.
  34.  
  35. I have some questions which I have so far not been able to 
  36. figure out. I have the MSDV CD ROM's, so answers could point me 
  37. there or to the online documentation, if appropriate.
  38.  
  39. 1. What is a .PCH file and what is it for? It is huge (4Mb) 
  40. even for small programs and exists in both the Release and 
  41. Debug directories. I can't find any reference to it in the 
  42. documentation. Do I need it and can I turn it off?
  43.  
  44. 2. You can't call an item which expects a string or string 
  45. pointer with a Cstring argument. Is there some way to copy to 
  46. or recast as a Cstring to a string or string pointer? UPDATE: 
  47. maybe I was doing something else wrong. Anyway, if you have 
  48. comments on the difference between a string and a Cstring, I'd 
  49. be interested.
  50.  
  51. 3. I loaded WIN32S from the new MSDN disk onto a machine 
  52. running Windows 3.11, but there are a lot of libraries missing 
  53. when I try to run my application., for example MSVCRT40.DLL, 
  54. MFC40.DLL and the Fortran library MSFRT40.DLL. Should I be 
  55. building my applications differently? Or is there another 
  56. library I need to load? How can I let Win 3.1x users use my 
  57. application? I tried linking a C++/Fortran app with no runtime 
  58. (=DLL?) libraries, but I am calling AFXMesageBox and it didn't 
  59. like that. NOTE THAT it seems that if you mix languages, if you 
  60. DLL one you must DLL the other or you can't link.
  61.  
  62. 4. MS claims that OpenGL is available only on Windows NT. Is 
  63. that true? What about 3.1x?
  64.  
  65. 5. It looks like radio buttons are treated in a "dumb" fashion 
  66. by the dialog resource editor and the AppWizard. It seems that 
  67. it is the application's responsibility to see that one button 
  68. is turned on and turn the others off before updating data. Is 
  69. that right?
  70.  
  71. 6. Is there an easy way to add a standard system icon to a 
  72. dialog box? For instance, the information icon or the warning 
  73. icon, which seems to come with noises when used with 
  74. AFXMessageBox and the UINT constant MB_ICONINFORMATION?
  75.  
  76. Any answers anyone can give would be appreciated!
  77.  
  78. -- 
  79. "You don't need a weatherman to know which way the wind blows" 
  80. (B. Dylan)
  81.  
  82. Charles Stoyer, Interpex Limited, Box 839, Golden CO 80401 USA
  83. cstoyer@interpex.com, CompuServe: 75142.2356 
  84. www/interpex.com/interpex/
  85.  
  86.  
  87.